﻿/*
* 作 者: 槐尧
* 创建时间: 2016/2/1 10:30:46
* 说明:  IOS的照片插件
*/
using UnityEngine;
using System.Collections;
using System.Runtime.InteropServices;

public class IOSPluginPhoto : PluginBasee<IOSPluginPhoto>
{


    /// <summary>
    /// 拍摄照片
    /// </summary>
    public void TakePhoto()
    {
        #if UNITY_IPHONE
        _TakePhoto(Application.persistentDataPath);
        #endif
    }

    /// <summary>
    /// 本地照片
    /// </summary>
    public void LocalPhoto()
    {
#if UNITY_IPHONE
        _LocalPhoto(Application.persistentDataPath);
#endif
    }

#if UNITY_IPHONE
	[DllImport("__Internal")]
	private static extern void _TakePhoto(string path);

    [DllImport("__Internal")]
	private static extern void _LocalPhoto(string path);
#endif
}
